package com.example.day03_mvp.presenter;

import com.example.day03_mvp.base.BasePresenter;
import com.example.day03_mvp.bean.WanBean;
import com.example.day03_mvp.model.WanCallBack;
import com.example.day03_mvp.model.WanModel;
import com.example.day03_mvp.view.WanView;

public class WanPresenter extends BasePresenter<WanView> implements WanCallBack {
    public WanModel model;
    public void getdata(){
        model.addModel(this);
    }
    @Override
    protected void initModel() {
        model=new WanModel();
        addMolde(model);
    }

    @Override
    public void onSuccess(WanBean data) {
        mview.onSuccess(data);
    }

    @Override
    public void onFali(String error) {
        mview.onFali(error);
    }
}
